﻿using PureMVC.Interfaces;
using PureMVC.Patterns;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class StartCommand : SimpleCommand
{
    public override void Execute(INotification notification)
    {
        StartProxy startProxy = Facade.RetrieveProxy(StartProxy.NAME) as StartProxy;
        if(notification.Type=="TimeJJ")
        {
            startProxy.TimeJJ();
        }
        if (notification.Type == "GameOver")
        {
            startProxy.GameOver();
        }
        if (notification.Type == "AddScore")
        {
            startProxy.AddScroeNum();
        }
    }
}
